package ExercicioER2AwtSwingRelatorio;

import java.awt.Color;
import java.awt.GridLayout;
import java.awt.Panel;

import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public class Cadastro extends JFrame {
	JFrame frame = new JFrame("Dados Cadastrais");
	Panel panel = new Panel();
	JLabel Nome =new JLabel("Nome:");
	JTextArea text1 = new JTextArea(1,20);
	JLabel dataNasc =new JLabel("Data de Nascimento:");
	JTextArea text2 = new JTextArea(1,13);
	JLabel sexo =new JLabel("Sexo:");
	JLabel m =new JLabel("M");
	JRadioButton radio1 = new JRadioButton();
	JLabel f =new JLabel("F");
	JRadioButton radio2 = new JRadioButton();
	JLabel rg =new JLabel("RG");
	JTextArea text3 = new JTextArea(1,13);
	JLabel cpf = new JLabel("CPF");
	JTextArea text4 = new JTextArea(1,13);
	JLabel ctps =new JLabel("CTPS");
	JTextArea text5 = new JTextArea(1,13);
	
	
	
public void interf(){	
	frame.setVisible(true);
	frame.setSize(300, 300);
	frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	frame.add(panel);
	panel.add(Nome);
	panel.add(text1);
	panel.add(dataNasc);
	panel.add(text2);
	panel.add(sexo);
	panel.add(m);
	panel.add(radio1);
	panel.add(f);
	panel.add(radio2);
	panel.add(rg);
	panel.add(text3);
	panel.add(cpf);
	panel.add(text4);
	panel.add(ctps);
	panel.add(text5);
	JPanel painel1 = new JPanel();
	painel1.setLayout(new GridLayout(4,1));
	painel1.setBorder(BorderFactory.createLineBorder(Color.black));
	JTextField txtEmail = new JTextField("Entre com o e-mail:", 20);
	
}

}
